import request from "@/utils/request";

// 上传文件生成url
export const upload = (formData) => {
  return request.post("/file/upload", formData, {
    headers: { "Content-Type": "multipart/form-data" },
  });
};

// 删除文件
export const deleteFile = (url) => {
  return request.delete(`/file/delete`, { params: { url } });
};
